<div class="left_list">
    <div class="head_navleft"><img src="/image/icon_dt.jpg">关于我们</div>
    <ul class="nav_left" id="left_menu">

    </ul>
</div>
<dl class="lxwm">
    <dt><img src="/image/icon_dt.jpg">联系我们</dt>
    <dd>地址：中国 西安经济技术开发区泾渭工业园西金路15号 <br>
        电话：029-86968415 <br>
        传真：029-86968416<br>
        E-MAIL:bgs@c-wmm.com </dd>
</dl>

<script>
    $(function(){
        var mid = '#<%=menu.id%>';
        var rootmenu = $('<%-menu.content%>');
        var curNode=  rootmenu.find(mid);

        var parent =  curNode.parentsUntil("ul#root_parent");


        var realMenus = parent;

        if(parent[0]) {

            log('node found');

           realMenus = parent[parent.length-1];
            log(parent[0].outerHTML);

        }
        else{

            log('node not found');
            realMenus = curNode;
            log(realMenus[0].outerHTML);
        }

        $(mid,realMenus).find('a:first').css('color','yellow');

        $("#left_menu").append(realMenus);

    });

</script>